<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WhittleList.Controllers.ProjectHelpers.IndexHelper>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TopContent" runat="server">
    <h2>Projects</h2>
    <a id="control-button" href="Project/create?siteid=1">Create Project</a>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Projects for <span><%= Html.Encode(Model.Site.Name) %></span></h2>
<div class="bordered">
    <div class="inside">
        <table>
            <thead>
	            <tr>
		            <th>Project</th>
		            <th>Description</th>
		            <th style="text-align:right">Date Created</th>
	            </tr>
            </thead>
            <tbody>

<%foreach (var project in this.Model.Projects){%>
    <tr class="odd">
        <td class="tag">
            <span class="proposals">
                <%--<a href="<%=Url.project(Model, "Details")%>"><%=project.Name %></a>--%>
                    <%= Html.ActionLink(project.Name, "Details", new { id = project.Id })%>
            </span>
        </td>
        <td><%= project.Summary%></td>
        <td class="date">
            <%=Html.Encode(project.Created.ToShortDateString())%>
        </td>
    </tr>

<% } %>
                <tr class="odd">
		            <td class="tag"><span class="proposals">asdf</span></td>
		            <td>Updated Proposal <a href="/proposals/view/767/109">Html clean up for bevans site</a></td>
		            <td class="date">10 SEP 2009</td>
	            </tr>

	            <tr class="even">
		            <td class="tag"><span class="calendars">calendars</span></td>
		            <td>Added a new event on 2009-08-10 09:00</td>
		            <td class="date">31 AUG 2009</td>
	            </tr>
	            <tr class="odd">
	                <td class="tag"><span class="proposals">proposals</span></td>
		            <td>Sent Proposal <a href="/proposals/view/767/109">Business Management</a> to <a href="/clients/view/767/">Armfelt</a></td>
		            <td class="date">25 AUG 2009</td>
	            </tr>
	            <tr class="even">
		            <td class="tag"><span class="clients">clients</span></td>
		            <td>Updated Client <a href="/clients/view/767">Armfelt</a></td>
		            <td class="date">25 AUG 2009</td>
	            </tr>
            </tbody>
        </table>
    </div>
</div>


</asp:Content>


